package com.kushe.site.form;

import org.jreform.HtmlForm;
import org.jreform.Input;

import static org.jreform.criteria.Criteria.emailAddress;
import static org.jreform.criteria.Criteria.length;

/**
 * Created by WhiteBlue on 15/4/1.
 */
public class LoginForm extends HtmlForm {
    public LoginForm() {
        input(stringType(), "email", length(5, 20), emailAddress());
        input(stringType(), "password", length(5, 12));
    }

    public Input getEmail(){
        return getInput("email");
    }

    public Input getPassword(){
        return getInput("password");
    }
}
